Skip to content

Commit

Permalink
test corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jul 30, 2023
1 parent 696ea52 commit 6c65a50
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/database/Mvc/Model/DeleteCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ public function mvcModelDeleteCascadeRelated(DatabaseTester $I)

$expected = 2;
$actual = $customer->invoices->count();
$I->assertSame($expected, $actual);
$I->assertEquals($expected, $actual);

$expected = 1;
$actual = $customer->paidInvoices->count();
$I->assertSame($expected, $actual);
$I->assertEquals($expected, $actual);

$expected = 1;
$actual = $customer->unpaidInvoices->count();
$I->assertSame($expected, $actual);
$I->assertEquals($expected, $actual);

$actual = $customer->delete();
$I->assertTrue($actual);
Expand All @@ -140,11 +140,11 @@ public function mvcModelDeleteCascadeRelated(DatabaseTester $I)

$expected = 1;
$actual = $invoices->count();
$I->assertSame($expected, $actual);
$I->assertEquals($expected, $actual);

$expected = $unpaidInvoiceId;
$actual = $invoices[0]->inv_id;
$I->assertSame($expected, $actual);
$I->assertEquals($expected, $actual);
}

/**
Expand Down Expand Up @@ -230,7 +230,7 @@ public function mvcModelDeleteGetRelated(DatabaseTester $I)
*/
$expected = 5;
$actual = $customer->invoices->count();
$I->assertSame($expected, $actual);
$I->assertEquals($expected, $actual);

/**
* Get paid invoices using the property
Expand All @@ -256,7 +256,7 @@ public function mvcModelDeleteGetRelated(DatabaseTester $I)
*/
$expected = 3;
$actual = $customer->invoices->count();
$I->assertSame($expected, $actual);
$I->assertEquals($expected, $actual);

/**
* Get unpaid invoices using getRelated()
Expand All @@ -273,7 +273,7 @@ public function mvcModelDeleteGetRelated(DatabaseTester $I)
*/
$expected = 0;
$actual = $customer->invoices->count();
$I->assertSame($expected, $actual);
$I->assertEquals($expected, $actual);
}

/**
Expand Down Expand Up @@ -318,7 +318,7 @@ public function mvcModelDeleteRestrictRelated(DatabaseTester $I)

$expected = 1;
$actual = $customer->inactiveInvoices->count();
$I->assertSame($expected, $actual);
$I->assertEquals($expected, $actual);

$actual = $customer->delete();
$I->assertFalse($actual);
Expand Down

0 comments on commit 6c65a50

Please sign in to comment.