-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update PHP code to rely on latest JSON data file locations. (#65)
- Loading branch information
1 parent
e45b33b
commit 54cd44d
Showing
6 changed files
with
41 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* Tests for GoogleChromeLabs\ThirdPartyCapital\Util\JsonDir | ||
* | ||
* @package GoogleChromeLabs/ThirdPartyCapital | ||
* @copyright 2024 Google LLC | ||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 | ||
*/ | ||
|
||
namespace GoogleChromeLabs\ThirdPartyCapital\Tests; | ||
|
||
use GoogleChromeLabs\ThirdPartyCapital\TestUtils\TestCase; | ||
use GoogleChromeLabs\ThirdPartyCapital\Util\JsonDir; | ||
|
||
class JsonDirTest extends TestCase | ||
{ | ||
|
||
public function testGetFilePath() | ||
{ | ||
$absPath = JsonDir::getFilePath('google-analytics.json'); | ||
$this->assertStringEndsWith('/data/google-analytics.json', $absPath); | ||
} | ||
|
||
public function testGetFilePathWithLeadingSlash() | ||
{ | ||
$absPath = JsonDir::getFilePath('/google-analytics.json'); | ||
$this->assertStringEndsWith('/data/google-analytics.json', $absPath); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.