function testAddColumns() { $m = $this->getManager(null, false); $s = new Schema($m); $s->add('one', Schema::COL_INT, 'INT(10) UNSIGNED'); $s->add('two', Schema::COL_BOOL, 'BOOL DEFAULT 0', 'some'); $one = array('column' => 'one', 'type' => Schema::COL_INT, 'definition' => 'INT(10) UNSIGNED', 'options' => null); $two = array('column' => 'two', 'type' => Schema::COL_BOOL, 'definition' => 'BOOL DEFAULT 0', 'options' => 'some'); $this->assertEquals($one, $s->get('one'), 'Поле one'); $this->assertEquals($two, $s->get('two'), 'Поле two'); $this->assertFalse($s->get('three'), 'Несуществующее поле'); }