Example #1
0
 /**
  * Test for `Field::autoIncrement()`.
  *
  * @since 1.0.0
  * @access public
  *
  * @requires function Freyja\Database\Schema\Field::__construct
  * @requires function Freyja\Database\Schema\Field::char
  * @requires function Freyja\Database\Schema\Field::autoIncrement
  *
  * @expectedException Freyja\Exceptions\LogicException
  * @expectedExceptionMessage The field type cannot be declared AUTO_INCREMENT
  */
 public function testAutoIncrementWithNotValidFieldType()
 {
     $field = new Field('name');
     $field->char()->autoIncrement();
 }