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.
1 parent 0a6b86e commit 207da59Copy full SHA for 207da59
setup/src/Magento/Setup/Test/Unit/Fixtures/FixtureModelTest.php
@@ -103,6 +103,15 @@ public function testGetValue()
103
104
namespace Magento\Setup\Fixtures;
105
106
+/**
107
+ * Overriding the built-in PHP function since it cannot be mocked->
108
+ *
109
+ * The method is used in FixtureModel. loadConfig in an if statement. By overriding this method we are able to test
110
+ * both of the possible cases based on the return value of is_readable.
111
112
+ * @param $filename
113
+ * @return bool
114
+ */
115
function is_readable($filename)
116
{
117
if (strpos($filename, 'exception') !== false) {
0 commit comments