Skip to content

Commit

Permalink
Updated tests with a few improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Ritter committed Mar 7, 2018
1 parent 0f70f2a commit dbbd639
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/TestCase/ORM/QueryTest.php
Expand Up @@ -3614,7 +3614,6 @@ public function testSelectAllExcept()
public function testSelectAllExceptWithContains()
{
$table = $this->getTableLocator()->get('Articles');
$this->getTableLocator()->get('Articles');
$table->hasMany('Comments');
$table->belongsTo('Authors');

Expand Down Expand Up @@ -3642,7 +3641,6 @@ public function testSelectAllExceptWithContains()
public function testSelectAllExceptWithMulitpleCalls()
{
$table = $this->getTableLocator()->get('Articles');
$this->getTableLocator()->get('Articles');

$result = $table
->find()
Expand Down Expand Up @@ -3692,12 +3690,9 @@ public function testSelectAllExceptWithMulitpleCalls()
public function testSelectAllExceptThrowsInvalidArgument()
{
$table = $this->getTableLocator()->get('Articles');
try {
$this->expectException(\InvalidArgumentException::class);
$table
->find()
->selectAllExcept([], ['body']);
} catch (\InvalidArgumentException $e) {
$this->assertTrue(true);
}
}
}

0 comments on commit dbbd639

Please sign in to comment.