mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Tests - BaseTestCase - rename method getFilePathToTests() -> getFilePathForTesting()
This commit is contained in:
@@ -111,7 +111,7 @@ abstract class BaseTestCase extends TestCase
|
|||||||
* @param string $directoryPath (optional) Path of directory containing the file
|
* @param string $directoryPath (optional) Path of directory containing the file
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getFilePathToTests($fileName, $directoryPath = '')
|
public function getFilePathForTesting($fileName, $directoryPath = '')
|
||||||
{
|
{
|
||||||
$rootPath = Miscellaneous::getProjectRootPath();
|
$rootPath = Miscellaneous::getProjectRootPath();
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,6 @@ class ComposerTest extends BaseTestCase
|
|||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$this->composerJsonPath = $this->getFilePathToTests(Composer::FILE_NAME_MAIN);
|
$this->composerJsonPath = $this->getFilePathForTesting(Composer::FILE_NAME_MAIN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -447,12 +447,12 @@ class MimeTypesTest extends BaseTestCase
|
|||||||
public function provideFilePathToGetMimeTypeOfRealFile()
|
public function provideFilePathToGetMimeTypeOfRealFile()
|
||||||
{
|
{
|
||||||
yield[
|
yield[
|
||||||
$this->getFilePathToTests('minion.jpg'),
|
$this->getFilePathForTesting('minion.jpg'),
|
||||||
'image/jpeg',
|
'image/jpeg',
|
||||||
];
|
];
|
||||||
|
|
||||||
yield[
|
yield[
|
||||||
$this->getFilePathToTests('lorem-ipsum.txt'),
|
$this->getFilePathForTesting('lorem-ipsum.txt'),
|
||||||
'text/plain',
|
'text/plain',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -465,12 +465,12 @@ class MimeTypesTest extends BaseTestCase
|
|||||||
public function provideExistingFilePathToCheckIsImagePath()
|
public function provideExistingFilePathToCheckIsImagePath()
|
||||||
{
|
{
|
||||||
yield[
|
yield[
|
||||||
$this->getFilePathToTests('minion.jpg'),
|
$this->getFilePathForTesting('minion.jpg'),
|
||||||
true,
|
true,
|
||||||
];
|
];
|
||||||
|
|
||||||
yield[
|
yield[
|
||||||
$this->getFilePathToTests('lorem-ipsum.txt'),
|
$this->getFilePathForTesting('lorem-ipsum.txt'),
|
||||||
false,
|
false,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user