Skip to content

Commit f6cc253

Browse files
committed
Fix up tests
1 parent 4fe5b9e commit f6cc253

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/ext_test.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use PHPUnit\Framework\MockObject\MockObject;
1414
use phpbb\notification\manager;
15-
use phpbb\finder;
15+
use phpbb\finder\finder;
1616
use phpbb\db\migrator;
1717
use Symfony\Component\DependencyInjection\ContainerInterface;
1818
use phpbb\ideas\ext;
@@ -88,7 +88,7 @@ public function test_notification_steps(string $method, string $step): void
8888
$this->assertEquals('notification', $state);
8989
}
9090

91-
public function notification_step_provider(): array
91+
public static function notification_step_provider(): array
9292
{
9393
return [
9494
'enable step' => ['enable_notifications', 'enable_step'],
@@ -127,7 +127,7 @@ private function setup_parent_step_expectations(string $step, $expected_result):
127127
}
128128
}
129129

130-
public function parent_step_provider(): array
130+
public static function parent_step_provider(): array
131131
{
132132
return [
133133
'enable parent step' => ['enable_step', false],

tests/functional/viewonline_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function test_viewonline_check_viewonline()
6060
}
6161
catch (\PHPUnit\Framework\AssertionFailedError $e)
6262
{
63-
$this->addWarning('Expected VIEWING_IDEAS lang string not found: ' . $e->getMessage());
63+
$this->markTestIncomplete('Expected VIEWING_IDEAS lang string not found: ' . $e->getMessage());
6464
}
6565
return;
6666
}

tests/ideas/idea_attributes_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function test_set_status($idea_id, $status)
7272
self::assertEquals($status, $idea['idea_status']);
7373
}
7474

75-
public function set_status_notification_data()
75+
public static function set_status_notification_data()
7676
{
7777
return [
7878
[1, 1, [], 'add_notifications'],

0 commit comments

Comments
 (0)