Пример #1
0
 public function testGetAllNoData()
 {
     $this->loader->expects($this->exactly(2))->method('load')->willReturn([]);
     $this->setLoadConfigExpectation(false);
     $this->assertEquals([], $this->model->getAll());
     $this->assertEquals([], $this->model->getAll());
 }
 public function testGetAll()
 {
     $expect = ['Vendor_A' => ['data' => 'a'], 'Vendor_B' => ['data' => 'b'], 'Vendor_C' => ['data' => 'c']];
     $this->assertEquals($expect, $this->moduleList->getAll());
     // call once more to make sure it's cached
     $this->moduleList->getAll();
 }