public function testCreateDir()
 {
     $container = $this->getContainerMock();
     $adapter = new Rackspace($container);
     $this->assertInternalType('array', $adapter->createDir('dirname', new Config()));
 }
Example #2
0
 public function testCreateDir()
 {
     $container = $this->getContainerMock();
     $dataObject = $this->getDataObjectMock('dirname');
     $container->shouldReceive('uploadObject')->with('dirname', '', ['Content-Type' => 'application/directory'])->andReturn($dataObject);
     $adapter = new Rackspace($container);
     $response = $adapter->createDir('dirname', new Config());
     $this->assertInternalType('array', $response);
     $this->assertEquals('dirname', $response['path']);
 }