Google\Cloud\Tests\Snippets\Datastore\TransactionTest::setUp PHP Méthode

setUp() public méthode

public setUp ( )
    public function setUp()
    {
        $this->connection = $this->prophesize(ConnectionInterface::class);
        $this->operation = new \OperationStub($this->connection->reveal(), self::PROJECT, '', new EntityMapper(self::PROJECT, false, false));
        $this->transaction = new Transaction($this->operation, self::PROJECT, $this->transactionId);
        $this->datastore = new DatastoreClient();
        $this->key = new Key('my-awesome-project', [['path' => [['kind' => 'Person', 'name' => 'Bob']]]]);
    }