CRUDlexTests\EntityDefinitionTest::testgetListFields PHP Method

testgetListFields() public method

public testgetListFields ( )
    public function testgetListFields()
    {
        $read = $this->definition->getListFields();
        $expected = ['author', 'title', 'library'];
        $this->assertSame($read, $expected);
        $read = $this->definitionLibrary->getListFields();
        $expected = ['id', 'created_at', 'updated_at', 'name', 'type', 'opening', 'isOpenOnSundays', 'planet', 'libraryBook'];
        $this->assertSame($read, $expected);
        $old = $read;
        $expected = ['id', 'name'];
        $this->definitionLibrary->setListFields($expected);
        $read = $this->definitionLibrary->getListFields();
        $this->assertSame($read, $expected);
        $this->definitionLibrary->setListFields($old);
    }