Skip to content

Commit 0fbd19c

Browse files
committed
Fix missing icon and inline stub class
1 parent 0325dbe commit 0fbd19c

File tree

5 files changed

+16
-22
lines changed

5 files changed

+16
-22
lines changed
Loading
+1
Loading

templates/Collector/mongodb.html.twig

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{% if collector.requestCount > 0 %}
3030

3131
{% set icon %}
32-
{{ include('@MongoDB/Collector/mongodb.svg') }}
32+
{{ source('@MongoDB/Collector/mongodb.svg') }}
3333

3434
<span class="sf-toolbar-value">{{ collector.requestCount }}</span>
3535
<span class="sf-toolbar-info-piece-additional-detail">
@@ -157,8 +157,8 @@
157157
{% set display = true %}
158158
{% endif %}
159159
<div class="trace-line-header break-long-words sf-toggle" data-toggle-selector="#trace-html-{{ i }}-{{ loop.index }}" data-toggle-initial="{{ display ? 'display' : 'hidden' }}">
160-
<span class="icon icon-close">{{ include('@WebProfiler/images/icon-minus-square.svg') }}</span>
161-
<span class="icon icon-open">{{ include('@WebProfiler/images/icon-plus-square.svg') }}</span>
160+
<span class="icon icon-close">{{ source('@MongoDB/Collector/icon-minus-square.svg') }}</span>
161+
<span class="icon icon-open">{{ source('@MongoDB/Collector/icon-plus-square.svg') }}</span>
162162
<span class="block trace-file-path">
163163
{% set line_number = trace.line|default(1) %}
164164
{% if trace.file is defined %}

tests/Functional/DataCollector/DriverEventSubscriberTest.php

+11-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,17 @@ class DriverEventSubscriberTest extends TestCase
2121

2222
public function setUp(): void
2323
{
24-
$this->collector = new Stubs\CommandEventCollectorStub();
25-
$this->stopwatch = new Stopwatch();
24+
$this->collector = new class implements CommandEventCollector
25+
{
26+
public array $events;
27+
28+
public function collectCommandEvent(int $clientId, string $requestId, array $data): void
29+
{
30+
$this->events[] = ['clientId' => $clientId, 'requestId' => $requestId, 'data' => $data];
31+
}
32+
};
33+
34+
$this->stopwatch = new Stopwatch();;
2635
}
2736

2837
public function testCommandSucceeded(): void

tests/Functional/DataCollector/Stubs/CommandEventCollectorStub.php

-17
This file was deleted.

0 commit comments

Comments
 (0)