Phalcon\Test\Unit\Mvc\Model\ManagerTest::testModelPublicProperties PHP Method

testModelPublicProperties() public method

Tests Manager::isVisibleModelProperty
Since: 2016-08-12
Author: Serghei Iakovlev ([email protected])
    public function testModelPublicProperties()
    {
        $this->specify('The Manager::isVisibleModelProperty does not check public property correctly', function ($property, $expected) {
            expect($this->modelsManager->isVisibleModelProperty(new Customers(), $property))->equals($expected);
        }, ['examples' => [['id', true], ['document_id', true], ['customer_id', true], ['first_name', true], ['some_field', false], ['', false], ['protected_field', false], ['private_field', false]]]);
    }