/** * */ public function testGetAllAttributes() { $this->bag->add('one', 'two'); $this->bag->add('three', 'four'); $this->assertEquals(['one' => 'two', 'three' => 'four'], $this->bag->all()); }
/** * Get a list of all attributes names from the attribute bags. * * @return array */ public function attributes() { return array_keys($this->attributes->all()); }