public static function getNoLazy(Model $model, $attribute) { return Arrays::getValue($model->attributes(), $attribute); }
public function __construct(Model $expected) { $this->expected = $expected; $this->expectedAttributes = $expectedAttributes = Arrays::filterByAllowedKeys($this->expected->attributes(), $this->expected->getFields()); }
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 '); }