We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b37326 + d1134f7 commit 2d1d3dbCopy full SHA for 2d1d3db
lib/internal/Magento/Framework/Module/Test/Unit/DirTest.php
@@ -59,4 +59,17 @@ public function testGetDirModuleSubDirUnknown()
59
60
$this->_model->getDir('Test_Module', 'unknown');
61
}
62
+
63
+ /**
64
+ * @expectedException \InvalidArgumentException
65
+ * @expectedExceptionMessage Module 'Test Module' is not correctly registered.
66
+ */
67
+ public function testGetDirModuleIncorrectlyRegistered()
68
+ {
69
+ $this->moduleRegistryMock->expects($this->once())
70
+ ->method('getPath')
71
+ ->with($this->identicalTo(ComponentRegistrar::MODULE), $this->identicalTo('Test Module'))
72
+ ->willReturn(null);
73
+ $this->_model->getDir('Test Module');
74
+ }
75
0 commit comments