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:
@@ -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>
|
||||
|
@@ -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());
|
||||
|
Reference in New Issue
Block a user