$mockId, ]; // Fetching template data for the element $actualTemplateData = $pinnableElement->getTemplateData(); // Assert that the actual template data matches the expected array $this->assertSame( $expectedTemplateData, $actualTemplateData, 'Template data should correctly include the ID.' ); // Additional test case to verify behavior with different ID $anotherMockId = 'another-mock-element'; $anotherPinnableElement = new VectorComponentPinnableElement( $anotherMockId ); // Fetching template data for the new element $anotherActualTemplateData = $anotherPinnableElement->getTemplateData(); // Ensuring the new element's template data is as expected $this->assertSame( [ 'id' => $anotherMockId ], $anotherActualTemplateData, 'Template data should accurately reflect a different ID.' ); } }