Skip to content

Commit

Permalink
Skip test when run against incorrect cake version
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Mar 27, 2013
1 parent de8acee commit e182db1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Test/Case/Lib/CroogoRouterTest.php
Expand Up @@ -13,6 +13,12 @@ class CroogoRouterTest extends CroogoTestCase {
'types_vocabulary',
);

public function setUp() {
parent::setUp();
// This test case is only valid for 2.2.x series
$this->skipIf(version_compare(Configure::version(), '2.2.7', '>'));
}

public function testContentType() {
$params = array(
'url' => array(),
Expand Down

0 comments on commit e182db1

Please sign in to comment.