public function testAddingPrimaryKeyWithConstraintAutomaticNameGreaterThanThirtyCharacters() { $blueprint = new Blueprint('users'); $blueprint->primary('reset_password_code'); $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar()); $this->assertEquals(1, count($statements)); $this->assertEquals('alter table users add constraint users_reset_password_code_prim primary key (reset_password_code)', $statements[0]); }