1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 13:44:12 +02:00

[ticket/17010] Resolve test issues and add node install for webpush testing

PHPBB3-17010
This commit is contained in:
Marc Alexander
2022-09-22 21:08:54 +02:00
parent c4a8e32689
commit 9bd9962aea
3 changed files with 38 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<dataset>
<table name="phpbb_banlist">
</table>
<table name="phpbb_forums_watch">
<column>forum_id</column>
<column>user_id</column>

View File

@@ -61,6 +61,10 @@ class notification_method_webpush_test extends phpbb_tests_notification_base
$process = new \Symfony\Component\Process\Process(['node_modules/.bin/web-push-testing', '--port', '9012', 'start']);
$process->run();
if (!$process->isSuccessful())
{
self::fail('Starting web push testing service failed: ' . $process->getErrorOutput());
}
}
protected static function stop_webpush_testing(): void
@@ -384,7 +388,7 @@ class notification_method_webpush_test extends phpbb_tests_notification_base
}
catch (\GuzzleHttp\Exception\GuzzleException $exception)
{
$this->fail('Failed getting subscription from web-push-testing client');
$this->fail('Failed getting subscription from web-push-testing client: ' . $exception->getMessage());
}
$subscription_return = \phpbb\json\sanitizer::decode((string) $response->getBody());