Skip to content

Commit

Permalink
prevent to send unexpected requests in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Apr 4, 2021
1 parent 95d9b87 commit 68fe4ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/demo export-ignore
/tests export-ignore
/scripts export-ignore
/.github export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.php_cs.dist export-ignore
Expand Down
3 changes: 2 additions & 1 deletion tests/PagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
class PagesTest extends PagesTestCase
{
/**
* -1 = Read from cache (throws an exception if the cache doesn't exist)
* 0 = Read from cache (generate the files the first time)
* 1 = Read from net without override the cache files
* 2 = Read from net and override the cache files
*/
const CACHE = 0;
const CACHE = -1;

/**
* 0 = Do not override the fixtures
Expand Down

0 comments on commit 68fe4ba

Please sign in to comment.