PartKeepr\CoreBundle\Tests\SystemInformationTest::testSystemStatus PHP Method

testSystemStatus() public method

public testSystemStatus ( )
    public function testSystemStatus()
    {
        $client = static::makeClient(true);
        $client->request('GET', '/api/system_status');
        $response = json_decode($client->getResponse()->getContent());
        $this->assertInternalType('object', $response);
        $this->assertObjectHasAttribute('inactiveCronjobCount', $response);
        $this->assertObjectHasAttribute('inactiveCronjobs', $response);
        $this->assertInternalType('array', $response->inactiveCronjobs);
        $this->assertObjectHasAttribute('schemaStatus', $response);
    }