diff --git a/api/src/Etemplate/Widget/test/TemplateTest.php b/api/src/Etemplate/Widget/test/TemplateTest.php new file mode 100644 index 0000000000..2135674513 --- /dev/null +++ b/api/src/Etemplate/Widget/test/TemplateTest.php @@ -0,0 +1,31 @@ +markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/api/src/Etemplate/test/WidgetBaseTest.php b/api/src/Etemplate/test/WidgetBaseTest.php new file mode 100644 index 0000000000..8d21fe4591 --- /dev/null +++ b/api/src/Etemplate/test/WidgetBaseTest.php @@ -0,0 +1,26 @@ +assertEquals(false, $etemplate->read('totally invalid'), 'Reading invalid template'); + + // Templates must be in the correct templates directory - use one from API + $this->assertEquals(true, $etemplate->read('api.prompt')); + } + + public function testSetDOMId() + { + + $etemplate = new Etemplate(); +/* + Etemplate::$response = $this->getMockBuilder(Etemplate\Api\Json\Response) + ->disableOriginalConstructor() + ->setMethods(['generic']) + ->getMock($etemplate); + Etemplate::$response->expects($this->once()) + ->method('generic'); + */ + $etemplate->set_dom_id('test_id'); + + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + public function testArrayMerge() + { + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + public function testExec() + { + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +}