public function testToArray() { $expected = [ConfigEnum::ID => '', ConfigEnum::KEY => '']; $this->assertEquals($expected, $this->credentials->toArray()); }
/** * @param bool $includeNull = false * @return array */ public function toArray($includeNull = false) { $array = parent::toArray($includeNull); $credentials = $this->credentials->toArray($includeNull); return array_merge($credentials, $array); }