/** * Tests that displayField can be changed * * @return void */ public function testDisplaySet() { $table = new Table(['table' => 'users', 'schema' => ['id' => ['type' => 'string'], 'foo' => ['type' => 'string'], '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]]]); $this->assertEquals('id', $table->displayField()); $table->displayField('foo'); $this->assertEquals('foo', $table->displayField()); }