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 6c38740 commit 20b9d5dCopy full SHA for 20b9d5d
tests/Test.php
@@ -72,9 +72,21 @@
72
73
$File = __DIR__ . '/../descriptions/' . $TestType . '.md';
74
75
- if( !str_starts_with( $TestType, 'Evidence.' ) && !file_exists( $File ) )
+ if( !file_exists( $File ) )
76
{
77
- $FailingTests[] = "\"descriptions/{$TestType}.md\" does not exist";
+ if( !str_starts_with( $TestType, 'Evidence.' ) )
78
+ {
79
+ $FailingTests[] = "\"descriptions/{$TestType}.md\" does not exist";
80
+ }
81
+
82
+ continue;
83
84
85
+ $Text = file_get_contents( $File );
86
87
+ if( str_contains( $Text, 'steamdb.info' ) )
88
89
+ $FailingTests[] = "\"descriptions/{$TestType}.md\" - SteamDB links in descriptions should be relative (do not include the domain)";
90
}
91
92
0 commit comments