From 2e048b55e4b91a6d6f8c6ae5665043353b01c6a6 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Tue, 10 Sep 2024 15:27:45 +0200 Subject: [PATCH] Format assertions --- .../framework/tests/Unit/MetaFacadeTest.php | 35 ++++--------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/packages/framework/tests/Unit/MetaFacadeTest.php b/packages/framework/tests/Unit/MetaFacadeTest.php index f9b9a00f264..555fc071c6a 100644 --- a/packages/framework/tests/Unit/MetaFacadeTest.php +++ b/packages/framework/tests/Unit/MetaFacadeTest.php @@ -19,58 +19,37 @@ class MetaFacadeTest extends UnitTestCase public function testNameMethodReturnsAValidHtmlMetaString() { - $this->assertEquals( - '', - Meta::name('foo', 'bar') - ); + $this->assertSame('', (string) Meta::name('foo', 'bar')); } public function testPropertyMethodReturnsAValidHtmlMetaString() { - $this->assertEquals( - '', - Meta::property('foo', 'bar') - ); + $this->assertSame('', (string) Meta::property('foo', 'bar')); } public function testPropertyMethodAcceptsPropertyWithOgPrefix() { - $this->assertEquals( - '', - Meta::property('og:foo', 'bar') - ); + $this->assertSame('', (string) Meta::property('og:foo', 'bar')); } public function testPropertyMethodAcceptsPropertyWithoutOgPrefix() { - $this->assertEquals( - '', - Meta::property('foo', 'bar') - ); + $this->assertSame('', (string) Meta::property('foo', 'bar')); } public function testLinkMethodReturnsAValidHtmlLinkString() { - $this->assertEquals( - '', - Meta::link('foo', 'bar') - ); + $this->assertSame('', (string) Meta::link('foo', 'bar')); } public function testLinkMethodReturnsAValidHtmlLinkStringWithAttributes() { - $this->assertEquals( - '', - Meta::link('foo', 'bar', ['title' => 'baz']) - ); + $this->assertSame('', (string) Meta::link('foo', 'bar', ['title' => 'baz'])); } public function testLinkMethodReturnsAValidHtmlLinkStringWithMultipleAttributes() { - $this->assertEquals( - '', - Meta::link('foo', 'bar', ['title' => 'baz', 'type' => 'text/css']) - ); + $this->assertSame('', (string) Meta::link('foo', 'bar', ['title' => 'baz', 'type' => 'text/css'])); } public function testGetMethodReturnsGlobalMetadataBag()