Skip to content
Permalink
Browse files

Updated tests with a few improvements

  • Loading branch information...
T0mats0 committed Mar 7, 2018
1 parent 0f70f2a commit dbbd639f2ea174c207322c9b119fce9102e55f03
Showing with 1 addition and 6 deletions.
  1. +1 −6 tests/TestCase/ORM/QueryTest.php
@@ -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');
@@ -3642,7 +3641,6 @@ public function testSelectAllExceptWithContains()
public function testSelectAllExceptWithMulitpleCalls()
{
$table = $this->getTableLocator()->get('Articles');
$this->getTableLocator()->get('Articles');
$result = $table
->find()
@@ -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.
You can’t perform that action at this time.