Google\Cloud\Tests\System\BigQuery\ManageTablesTest::testCreatesTable PHP Method

testCreatesTable() public method

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