/**
  * test monitor action
  */
 public function testMonitorError()
 {
     $this->loadDataFixtures();
     // call monitor
     $json = $this->getMonitorResponse(Response::HTTP_EXPECTATION_FAILED);
     $this->assertNotEmpty($json);
     $this->assertEquals(NUMBER_COMMANDS_MONITOR, count($json));
     // test every entry in array
     array_map(function ($e) {
         //check for array keys
         WebTestCase::assertArrayHasKey('ID_SCHEDULED_COMMAND', $e);
         WebTestCase::assertArrayHasKey('LAST_RETURN_CODE', $e);
         WebTestCase::assertArrayHasKey('B_LOCKED', $e);
         WebTestCase::assertArrayHasKey('DH_LAST_EXECUTION', $e);
     }, $json);
 }
コード例 #2
0
 protected static function createKernel(array $options = array())
 {
     return parent::createKernel(array('test_case' => 'AutowiringTypes') + $options);
 }
コード例 #3
0
ファイル: CachePoolsTest.php プロジェクト: ayoah/symfony
 protected static function createKernel(array $options = array())
 {
     return parent::createKernel(array('test_case' => 'CachePools') + $options);
 }
コード例 #4
0
 public function setUp()
 {
     parent::setUp();
     $this->apiService = new \petrepatrasc\BlizzardApiBundle\Service\ApiService();
 }