assertContains( 'add_privacy_message', $function_names ); } /** * Test the get_privacy_message function. */ public function test_get_privacy_message() { // Instantiate the SUT (System Under Test) class. $adplugg_privacy = new AdPlugg_Privacy(); // Call the method. $content = $adplugg_privacy->get_privacy_message(); // Assert that the returned value contains the expected content. $this->assertContains( 'This sample language', $content ); } }