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.
test product has attribute title
1 parent ac1e5e8 commit 2561cc1Copy full SHA for 2561cc1
tests/AttributeTest.php
@@ -48,3 +48,11 @@
48
assertDatabaseCount('products', 1);
49
assertNotEmpty($product->hasAttributeValue($value));
50
});
51
+
52
+test('test product has attribute title', function () {
53
+ $product = Product::query()->create(['title' => 'milwad-dev']);
54
+ $product->attachAttribute($title = 'role', 'developer');
55
56
+ assertDatabaseCount('products', 1);
57
+ assertNotEmpty($product->hasAttributeTitle($title));
58
+});
0 commit comments