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