Skip to content

Commit f166fca

Browse files
malteschmitzdaniil-berg
authored andcommitted
chore: replace qualified names with imports
1 parent 9b31cbf commit f166fca

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/metrics_manager_test.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
namespace tool_monitoring;
3333

3434
use advanced_testcase;
35+
use context_system;
3536
use core\exception\coding_exception;
37+
use core_tag_tag;
3638
use dml_exception;
3739
use PHPUnit\Framework\Attributes\CoversClass;
3840
use PHPUnit\Framework\Attributes\DataProvider;
@@ -544,11 +546,11 @@ public function test_sync_deletes_tag_instances_for_deleted_metrics(): void {
544546
self::assertNotNull($metric->id);
545547

546548
// Add tags alpha and beta to metric foo.
547-
\core_tag_tag::set_item_tags(
549+
core_tag_tag::set_item_tags(
548550
component: 'tool_monitoring',
549551
itemtype: 'metrics',
550552
itemid: $metric->id,
551-
context: \context_system::instance(),
553+
context: context_system::instance(),
552554
tagnames: ['alpha', 'beta'],
553555
);
554556
self::assertSame(
@@ -574,6 +576,6 @@ public function test_sync_deletes_tag_instances_for_deleted_metrics(): void {
574576
'itemid' => $metric->id,
575577
]),
576578
);
577-
self::assertSame([], \core_tag_tag::get_item_tags_array('tool_monitoring', 'metrics', $metric->id));
579+
self::assertSame([], core_tag_tag::get_item_tags_array('tool_monitoring', 'metrics', $metric->id));
578580
}
579581
}

0 commit comments

Comments
 (0)