public function testGetsName() { $bucket = new Bucket($this->connection->reveal(), $name = 'bucket'); $this->assertEquals($name, $bucket->name()); }
/** * Returns a storage object for the given path. * * @param string $path * @return \Google\Cloud\Storage\StorageObject */ protected function getObject($path) { $path = $this->applyPathPrefix($path); return $this->bucket->object($path); }