diff --git a/Test/Case/Lib/CakeResqueTest.php b/Test/Case/Lib/CakeResqueTest.php index b23b24d..e9b3fbb 100644 --- a/Test/Case/Lib/CakeResqueTest.php +++ b/Test/Case/Lib/CakeResqueTest.php @@ -45,6 +45,18 @@ public function tearDown() { parent::tearDown(); } + public function testCheckConfigReturnFalseWithoutArgs() { + $this->assertFalse(CakeResque::checkConfig(null)); + } + + public function testCheckConfigReturnFalseWithArgsWhenConfigureReadIsNull() { + $this->assertFalse(CakeResque::checkConfig('dummy')); + } + + public function testCheckConfigReturnTrueWithArgsWhenConfigureReadIsNotNull() { + $this->assertTrue(CakeResque::checkConfig('CakeResque.Redis')); + } + public function testEnqueueWithSuccess() { $id = md5(time());