Google\Cloud\Tests\Snippets\Storage\BucketTest::testExists PHP Méthode

testExists() public méthode

public testExists ( )
    public function testExists()
    {
        $snippet = $this->snippetFromMethod(Bucket::class, 'exists');
        $snippet->addLocal('bucket', $this->bucket);
        $this->connection->getBucket(Argument::any())->shouldBeCalled();
        $this->bucket->setConnection($this->connection->reveal());
        $res = $snippet->invoke();
        $this->assertEquals('Bucket exists!', $res->output());
    }