Repo2\QueryReactor\Tests\Fixtures::getCreateTable PHP Method

getCreateTable() public static method

public static getCreateTable ( )
    public static function getCreateTable()
    {
        return DDL\create(self::TABLE_NAME, [DDL\column('id')->integer()->primary(), DDL\column('name')->varchar(50)->required()]);
    }

Usage Example

 public function setUp()
 {
     $this->reactor = $this->createReactor($this->createController(TestUtil::getControllerParams()));
     $this->queryAwait(new Query\GenericQuery(Fixtures::getCreateTable()));
 }