/** * Test for `Field::notNull()`. * * @since 1.0.0 * @access public * * @requires function Freyja\Database\Schema\Field::__construct * @requires function Freyja\Database\Schema\Field::setDefault * @requires function Freyja\Database\Schema\Field::notNull * * @expectedException Freyja\Exceptions\LogicException * @expectedExceptionMessage Cannot declare the field as NOT NULL if default value is set to NULL */ public function testNotNullWithNullDefaultValue() { $field = new Field('name'); $field->setDefault()->notNull(); }