/** * Convert all themes to an array. * * @return array * @static */ public static function toArray() { return \Pingpong\Themes\Repository::toArray(); }
public function test_to_array() { $this->repository = $this->createRepository(); $expected = ['theme1', 'theme2']; $this->assertSame($expected, array_column($this->repository->toArray(), 'name')); }