DefinitionTest::testGetTotalDPU PHP Method

testGetTotalDPU() public method

public testGetTotalDPU ( )
    public function testGetTotalDPU()
    {
        $response = array('response_code' => 200, 'data' => array('created_at' => date('Y-m-d H:i:s', time()), 'dpu' => 10), 'rate_limit' => 200, 'rate_limit_remaining' => 150);
        DataSift_MockApiClient::setResponse($response);
        $def = new DataSift_Definition($this->user, testdata('definition'));
        $this->assertEquals($def->get(), testdata('definition'), 'Definition string not set correctly');
        $this->assertEquals($response['data']['dpu'], $def->getTotalDPU(), 'The total DPU is incorrect');
    }