Skip to content

Commit

Permalink
updated tests 4
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickakk committed Jan 31, 2024
1 parent df4ba0d commit 9e72ec9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/TestCase/Model/Table/CoursesTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,24 +99,4 @@ public function testBuildRules()
$this->markTestIncomplete('Not implemented yet.');
}



public function testGetFilter()
{
$SubscriptionsTable = TableRegistry::getTableLocator()->get('Subscriptions');
$subscriptions = $SubscriptionsTable->getSubscriptions();
foreach ($subscriptions as $row) {
$options = $this->Courses->getFilter($row);

if ($row['online_course'] !== null)
$this->assertArrayHasKey('Courses.online_course', $options['conditions']);
else
$this->assertArrayNotHasKey('Courses.online_course', $options['conditions']);

if ($row['notifications'])
$this->assertArrayHasKey('Courses.id NOT IN', $options['conditions']);
else
$this->assertArrayNotHasKey('Courses.id NOT IN', $options['conditions']);
}
}
}

0 comments on commit 9e72ec9

Please sign in to comment.