Story #435: As a user I can add an object to Swift.
All unit tests are now passing.
This commit is contained in:
@@ -85,7 +85,7 @@ class ContainerTest extends \HPCloud\Tests\TestCase {
|
||||
const FCONTENT = 'This is a test.';
|
||||
const FTYPE = 'text/plain';
|
||||
|
||||
public function XtestSave() {
|
||||
public function testSave() {
|
||||
$container = $this->containerFixture();
|
||||
|
||||
$obj = new Object(self::FNAME, self::FCONTENT, self::FTYPE);
|
||||
@@ -106,7 +106,7 @@ class ContainerTest extends \HPCloud\Tests\TestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* @ depends testSave.
|
||||
* @depends testSave
|
||||
*/
|
||||
public function testDelete() {
|
||||
$container = $this->containerFixture();
|
||||
|
||||
@@ -145,7 +145,13 @@ class ObjectStorageTest extends \HPCloud\Tests\TestCase {
|
||||
$store->deleteContainer($testCollection);
|
||||
throw $e;
|
||||
}
|
||||
$container->delete('test');
|
||||
|
||||
try {
|
||||
$container->delete('test');
|
||||
}
|
||||
// Skip 404s.
|
||||
catch (\Exception $e) {}
|
||||
|
||||
$store->deleteContainer($testCollection);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user