Skip to content

Commit

Permalink
fix: test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Tonia committed Aug 7, 2024
1 parent c9fda1f commit e166769
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Binary file added public/uploads/1723050675.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/uploads/1723051293.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions tests/Unit/ProductDeleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class ProductDeleteTest extends TestCase
protected $org;
protected $otherOrg;
protected $product;

/**
* @test
*/
protected function setUp(): void
{
parent::setUp();
Expand Down Expand Up @@ -74,7 +76,9 @@ protected function setUp(): void
'quantity' => 80
]);
}

/**
* @test
*/
public function testUserCanDeleteProduct()
{

Expand All @@ -86,7 +90,9 @@ public function testUserCanDeleteProduct()
$response->assertStatus(204);
$this->assertDatabaseMissing('products', ['product_id' => $this->product->product_id]);
}

/**
* @test
*/
public function testUserCannotDeleteProductIfNotOwner()
{

Expand Down

0 comments on commit e166769

Please sign in to comment.