attributes() public method

public attributes ( )
Esempio n. 1
0
 public static function getNoLazy(Model $model, $attribute)
 {
     return Arrays::getValue($model->attributes(), $attribute);
 }
Esempio n. 2
0
 public function __construct(Model $expected)
 {
     $this->expected = $expected;
     $this->expectedAttributes = $expectedAttributes = Arrays::filterByAllowedKeys($this->expected->attributes(), $this->expected->getFields());
 }
Esempio n. 3
0
 private function _assertSamePersistentAttributes(Model $expected)
 {
     $expectedAttributes = Arrays::filterByAllowedKeys($expected->attributes(), $expected->getFields());
     $actualAttributes = Arrays::filterByAllowedKeys($this->_actual->attributes(), $this->_actual->getFields());
     AssertAdapter::assertEquals($expectedAttributes, $actualAttributes, 'Models have different attributes ');
 }