get_tool_definitions(); $this->assertNotEmpty( $tools ); $this->assertSame( 'function', $tools[0]['type'] ); } public function test_contact_tool_requires_confirmation(): void { $tool = new Aivexa_Contact_Tool(); $result = $tool->execute( array( 'name' => 'Jane', 'email' => 'jane@example.com', 'message' => 'Hello', 'confirmed' => false, ) ); $this->assertInstanceOf( WP_Error::class, $result ); } }