We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9066a82 commit fdf6214Copy full SHA for fdf6214
tests/AttributeTest.php
@@ -86,6 +86,7 @@
86
$product->attachAttribute('role', $value = 'developer');
87
88
assertDatabaseCount('products', 1);
89
+ assertDatabaseCount('attributes', 1);
90
assertNotEmpty($product->hasAttributeValue($value));
91
});
92
@@ -94,6 +95,7 @@
94
95
$product->attachAttribute($title = 'role', 'developer');
96
97
98
99
assertNotEmpty($product->hasAttributeTitle($title));
100
101
@@ -103,6 +105,7 @@
103
105
$product->deleteAttribute($title, $value);
104
106
107
108
+ assertDatabaseCount('attributes', 0);
109
110
111
test('test can delete all attributes of one model', function () {
0 commit comments