fkooman\RemoteStorage\RemoteStorageServiceTest::testGetFolder PHP Method

testGetFolder() public method

public testGetFolder ( )
    public function testGetFolder()
    {
        $request = $this->getPutRequest('/admin/foo/bar/baz.txt');
        $response = $this->r->run($request);
        $this->assertSame(array('HTTP/1.1 200 OK', 'Content-Type: text/html;charset=UTF-8', 'Etag: "1:2"', 'Content-Length: 0', 'Access-Control-Allow-Origin: *', 'Access-Control-Expose-Headers: ETag, Content-Length', '', null), $response->toArray());
        $request = $this->getGetRequest('/admin/foo/bar/');
        $response = $this->r->run($request);
        $this->assertSame(array('HTTP/1.1 200 OK', 'Content-Type: application/ld+json', 'Etag: "1:7"', 'Content-Length: 150', 'Expires: 0', 'Cache-Control: no-cache', 'Access-Control-Allow-Origin: *', 'Access-Control-Expose-Headers: ETag, Content-Length', '', '{"@context":"http:\\/\\/remotestorage.io\\/spec\\/folder-description","items":{"baz.txt":{"Content-Length":12,"ETag":"1:2","Content-Type":"text\\/plain"}}}'), $response->toArray());
    }