public function testGetNames() { $this->setLoadAllExpectation(false); $this->setLoadConfigExpectation(); $this->assertSame(['foo'], $this->model->getNames()); $this->assertSame(['foo'], $this->model->getNames()); // second time to ensure config loader is called once }
public function testGetNames() { $expect = ['Vendor_A', 'Vendor_B', 'Vendor_C']; $this->assertEquals($expect, $this->moduleList->getNames()); }