public function testAddingInteger()
 {
     $blueprint = new Blueprint('users');
     $blueprint->integer('foo');
     $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar());
     $this->assertEquals(1, count($statements));
     $this->assertEquals('alter table "users" add "foo" int not null', $statements[0]);
     $blueprint = new Blueprint('users');
     $blueprint->integer('foo', true);
     $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar());
     $this->assertEquals(1, count($statements));
     $this->assertEquals('alter table "users" add "foo" int identity primary key not null', $statements[0]);
 }
 public function testAddingInteger()
 {
     $blueprint = new Blueprint('users');
     $blueprint->integer('foo');
     $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar());
     $this->assertEquals(1, count($statements));
     $this->assertEquals('alter table `users` add `foo` int not null', $statements[0]);
     $blueprint = new Blueprint('users');
     $blueprint->integer('foo', true);
     $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar());
     $this->assertEquals(1, count($statements));
     $this->assertEquals('alter table `users` add `foo` int not null auto_increment primary key', $statements[0]);
 }