From b37954110d2184279a7f400d8750996a27b8f666 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 5 Feb 2014 20:18:51 +0100 Subject: Bring back unit tests (they should be removed when creating a package) --- tests/Selenium/Addressbook/Import.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/Selenium/Addressbook/Import.php (limited to 'tests/Selenium/Addressbook/Import.php') diff --git a/tests/Selenium/Addressbook/Import.php b/tests/Selenium/Addressbook/Import.php new file mode 100644 index 000000000..13d81740f --- /dev/null +++ b/tests/Selenium/Addressbook/Import.php @@ -0,0 +1,29 @@ +go('addressbook', 'import'); + + // check task and action + $env = $this->get_env(); + $this->assertEquals('addressbook', $env['task']); + $this->assertEquals('import', $env['action']); + + $objects = $this->get_objects(); + + // these objects should be there always + $this->assertContains('importform', $objects); + } + + public function testImport2() + { + $this->go('addressbook', 'import'); + + $objects = $this->get_objects(); + + // these objects should be there always + $this->assertContains('importform', $objects); + } +} -- cgit v1.2.3