PartKeepr\UploadedFileBundle\Tests\TemporaryFileControllerTest::testUploadException PHP Method

testUploadException() public method

public testUploadException ( )
    public function testUploadException()
    {
        $client = static::makeClient(true);
        $client->request('POST', '/api/temp_uploaded_files/upload', []);
        $response = json_decode($client->getResponse()->getContent());
        $attribute = '@type';
        $this->assertObjectHasAttribute($attribute, $response);
        $this->assertEquals('Error', $response->{$attribute});
    }