/** * 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); }
protected static function createKernel(array $options = array()) { return parent::createKernel(array('test_case' => 'AutowiringTypes') + $options); }
protected static function createKernel(array $options = array()) { return parent::createKernel(array('test_case' => 'CachePools') + $options); }
public function setUp() { parent::setUp(); $this->apiService = new \petrepatrasc\BlizzardApiBundle\Service\ApiService(); }