Skip to content

Commit 6e1f3e9

Browse files
committed
[bundle] fix tests.
1 parent 620ddd2 commit 6e1f3e9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Diff for: pkg/enqueue-bundle/Tests/Unit/Profiler/MessageQueueCollectorTest.php

+5-7
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,19 @@ public function testShouldPrettyPrintUnknownPriority()
7171
$this->assertEquals('unknownPriority', $collector->prettyPrintPriority('unknownPriority'));
7272
}
7373

74-
public function testShouldPrettyPrintScalarMessage()
74+
public function testShouldEnsureStringKeepStringSame()
7575
{
7676
$collector = new MessageQueueCollector($this->createProducerMock());
7777

78-
$this->assertEquals('foo', $collector->prettyPrintMessage('foo'));
79-
$this->assertEquals('&lt;p&gt;', $collector->prettyPrintMessage('<p>'));
78+
$this->assertEquals('foo', $collector->ensureString('foo'));
79+
$this->assertEquals('bar baz', $collector->ensureString('bar baz'));
8080
}
8181

82-
public function testShouldPrettyPrintArrayMessage()
82+
public function testShouldEnsureStringEncodeArrayToJson()
8383
{
8484
$collector = new MessageQueueCollector($this->createProducerMock());
8585

86-
$expected = "[\n &quot;foo&quot;,\n &quot;bar&quot;\n]";
87-
88-
$this->assertEquals($expected, $collector->prettyPrintMessage(['foo', 'bar']));
86+
$this->assertEquals('["foo","bar"]', $collector->ensureString(['foo', 'bar']));
8987
}
9088

9189
/**

0 commit comments

Comments
 (0)