Google\Cloud\Tests\System\BigQuery\ManageDatasetsTest::testCreatesDataset PHP Method

testCreatesDataset() public method

public testCreatesDataset ( )
    public function testCreatesDataset()
    {
        $id = uniqid(self::TESTING_PREFIX);
        $options = ['friendlyName' => 'Test', 'description' => 'Test'];
        $this->assertFalse(self::$client->dataset($id)->exists());
        $dataset = self::$client->createDataset($id, $options);
        self::$deletionQueue[] = $dataset;
        $this->assertTrue(self::$client->dataset($id)->exists());
        $this->assertEquals($id, $dataset->id());
        $this->assertEquals($options['friendlyName'], $dataset->info()['friendlyName']);
        $this->assertEquals($options['description'], $dataset->info()['description']);
    }