/** * Make sure getObjectInfo is not called. * This used to be called because we only uploaded files when they * didn't exist yet. This has since changed to always upload. */ function testSaveForced() { $bucket = $this->getS3Bucket(); $s3 = $this->getS3Client(); $s3->expectNever('getObjectInfo'); $s3->expectOnce('putObjectFile'); $storage = new binarypool_storage_driver_s3($bucket['storage'], $s3, $this->getMockCache()); $storage->save($this->testfile, 'test/uploaded.jpg'); }