Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Test-Build Fix for a new Cronk category parameter in the XMLs
Browse files Browse the repository at this point in the history
refs #4807
  • Loading branch information
lazyfrosch committed Oct 4, 2013
1 parent cf7bc89 commit 7f16e87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/phpunit/tests/module/CronkCategoriesTest.php
Expand Up @@ -45,16 +45,15 @@ public function testCategoryRecord() {
$this->assertInternalType('array', $category);
$this->assertCount(8, $category);

$this->assertArrayHasKey('active', $category);
$this->assertArrayHasKey('catid', $category);
$this->assertArrayHasKey('count_cronks', $category); // dynamic
$this->assertArrayHasKey('permission_set', $category); // dynamic
$this->assertArrayHasKey('position', $category);
$this->assertArrayHasKey('system', $category);
$this->assertArrayHasKey('title', $category);
$this->assertArrayHasKey('visible', $category);
$this->assertArrayHasKey('collapsed', $category);

$this->assertEquals(true, $category['active']);
$this->assertEquals('data', $category['catid']);
$this->assertGreaterThan(0, $category['count_cronks']);
$this->assertEquals(false, $category['permission_set']);
Expand Down Expand Up @@ -177,4 +176,4 @@ public function testCategoryCreation() {
}


}
}

0 comments on commit 7f16e87

Please sign in to comment.