✨ Story 4.4: passions
This commit is contained in:
17
tests/passions.test.php
Normal file
17
tests/passions.test.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../includes/functions.php';
|
||||
|
||||
function assertTrue($cond, $msg) {
|
||||
if (!$cond) {
|
||||
fwrite(STDERR, $msg . PHP_EOL);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
$content = file_get_contents(__DIR__ . '/../pages/about.php');
|
||||
assertTrue(strpos($content, 'En Dehors du Code') !== false, 'missing passions section');
|
||||
assertTrue(strpos($content, 'Projets Open Source') !== false, 'missing open source card');
|
||||
assertTrue(strpos($content, 'https://github.com/skycel') !== false, 'missing github link');
|
||||
assertTrue(strpos($content, 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3') !== false, 'missing responsive grid');
|
||||
|
||||
fwrite(STDOUT, "OK\n");
|
||||
Reference in New Issue
Block a user