/** * @param Schema $schema */ public function up(Schema $schema) { Edge::migrate($schema, 'dict_edge'); Queue::migrate($schema, 'dict_queue'); Topic::install($schema); Word::install($schema); $web = $schema->createTable('dict_source'); $web->addColumn('id', 'integer', ['unsigned' => true, 'autoincrement' => true]); $web->addColumn('url', 'string'); $web->setPrimaryKey(['id']); $idiom = $schema->createTable('dict_idiom'); $idiom->addColumn('id', 'integer', ['unsign' => true, 'autoincrement' => true]); $idiom->addColumn('description', 'text'); $idiom->setPrimaryKey(['id']); }
/** * @depends testCreate */ public function testRemove($id) { $this->queue->remove($id); $this->assertFalse($this->queue->next()); }