toBeTrue(); }); test('the shim still defines the CsrfMagic object plugins call', function () use ($root) { $src = file_get_contents($root . '/include/js/csrf.js'); expect($src)->toContain('CsrfMagic'); expect($src)->toContain('XMLHttpRequest'); }); test('the script carries a Cacti copyright header', function () use ($root) { $src = file_get_contents($root . '/include/js/csrf.js'); expect($src)->toContain('The Cacti Group'); });