/**
  * Test we can filter by a string.
  */
 public function test_list_templates_with_filter()
 {
     $result = external::list_templates('tool_templatelibrary', 'page');
     $count = count($result);
     // Should be only one matching template.
     $this->assertEquals(1, $count);
     $this->assertEquals($result[0], "tool_templatelibrary/list_templates_page");
 }