From 3664204a255c7e2a39fd057609b307dee305bb6c Mon Sep 17 00:00:00 2001 From: Guillaume Lesniak Date: Thu, 15 Sep 2016 14:23:06 +0200 Subject: [PATCH] Move behat into MonarcCore --- behat.yml | 9 ---- features/amv.feature | 65 -------------------------- features/bootstrap/AmvContext.php | 77 ------------------------------- 3 files changed, 151 deletions(-) delete mode 100755 behat.yml delete mode 100755 features/amv.feature delete mode 100644 features/bootstrap/AmvContext.php diff --git a/behat.yml b/behat.yml deleted file mode 100755 index f2357a0..0000000 --- a/behat.yml +++ /dev/null @@ -1,9 +0,0 @@ -default: - extensions: - Behat\MinkExtension: - base_url: http://127.0.0.1:8080 - goutte: ~ - suites: - features: - paths: [ %paths.base%/features ] - contexts: [ AmvContext ] \ No newline at end of file diff --git a/features/amv.feature b/features/amv.feature deleted file mode 100755 index b95d3d4..0000000 --- a/features/amv.feature +++ /dev/null @@ -1,65 +0,0 @@ -@amvService -Feature: Amvs services - Test complies for amv service - -Scenario Outline: Test complies requirements - Given That I want to call the amv service - And I should test complies with Amode and Tmode and Vmode and Amodel and Tmodel and Vmodel and IsRegulator and the Result is - -Examples: - | a_mode | t_mode | v_mode | a_model | t_model | v_model | is_regulator | result | - | 0 | 0 | 0 | 1 | 1 | 1 | 0 | true | - | 0 | 0 | 0 | 1 | 1 | 1 | 1 | true | - | 0 | 0 | 0 | 1 | 1 | 2 | 0 | true | - | 0 | 0 | 0 | 1 | 1 | 2 | 1 | true | - | 0 | 0 | 0 | 1 | 2 | 3 | 0 | true | - | 0 | 0 | 0 | 1 | 2 | 3 | 1 | true | - - | 0 | 0 | 1 | 1 | 1 | 1 | 0 | false | - | 0 | 0 | 1 | 1 | 1 | 1 | 1 | false | - | 0 | 0 | 1 | 1 | 1 | 2 | 0 | false | - | 0 | 0 | 1 | 1 | 1 | 2 | 1 | false | - | 0 | 0 | 1 | 1 | 2 | 3 | 0 | false | - | 0 | 0 | 1 | 1 | 2 | 3 | 1 | false | - - | 0 | 1 | 0 | 1 | 1 | 1 | 0 | false | - | 0 | 1 | 0 | 1 | 1 | 1 | 1 | false | - | 0 | 1 | 0 | 1 | 1 | 2 | 0 | false | - | 0 | 1 | 0 | 1 | 1 | 2 | 1 | false | - | 0 | 1 | 0 | 1 | 2 | 3 | 0 | false | - | 0 | 1 | 0 | 1 | 2 | 3 | 1 | false | - - | 1 | 0 | 0 | 1 | 1 | 1 | 0 | true | - | 1 | 0 | 0 | 1 | 1 | 1 | 1 | false | - | 1 | 0 | 0 | 1 | 1 | 2 | 0 | true | - | 1 | 0 | 0 | 1 | 1 | 2 | 1 | false | - | 1 | 0 | 0 | 1 | 2 | 3 | 0 | true | - | 1 | 0 | 0 | 1 | 2 | 3 | 1 | false | - - | 1 | 1 | 0 | 1 | 1 | 1 | 0 | true | - | 1 | 1 | 0 | 1 | 1 | 1 | 1 | false | - | 1 | 1 | 0 | 1 | 1 | 2 | 0 | true | - | 1 | 1 | 0 | 1 | 1 | 2 | 1 | false | - | 1 | 1 | 0 | 1 | 2 | 3 | 0 | true | - | 1 | 1 | 0 | 1 | 2 | 3 | 1 | false | - - | 1 | 0 | 1 | 1 | 1 | 1 | 0 | true | - | 1 | 0 | 1 | 1 | 1 | 1 | 1 | false | - | 1 | 0 | 1 | 1 | 1 | 2 | 0 | true | - | 1 | 0 | 1 | 1 | 1 | 2 | 1 | false | - | 1 | 0 | 1 | 1 | 2 | 3 | 0 | true | - | 1 | 0 | 1 | 1 | 2 | 3 | 1 | false | - - | 0 | 1 | 1 | 1 | 1 | 1 | 0 | false | - | 0 | 1 | 1 | 1 | 1 | 1 | 1 | false | - | 0 | 1 | 1 | 1 | 1 | 2 | 0 | false | - | 0 | 1 | 1 | 1 | 1 | 2 | 1 | false | - | 0 | 1 | 1 | 1 | 2 | 3 | 0 | false | - | 0 | 1 | 1 | 1 | 2 | 3 | 1 | false | - - | 1 | 1 | 1 | 1 | 1 | 1 | 0 | true | - | 1 | 1 | 1 | 1 | 1 | 1 | 1 | true | - | 1 | 1 | 1 | 1 | 1 | 2 | 0 | false | - | 1 | 1 | 1 | 1 | 1 | 2 | 1 | false | - | 1 | 1 | 1 | 1 | 2 | 3 | 0 | true | - | 1 | 1 | 1 | 1 | 2 | 3 | 1 | false | diff --git a/features/bootstrap/AmvContext.php b/features/bootstrap/AmvContext.php deleted file mode 100644 index 581855f..0000000 --- a/features/bootstrap/AmvContext.php +++ /dev/null @@ -1,77 +0,0 @@ -service = new \MonarcCore\Service\AmvService(); - } - - - /** - * @Given I should test complies with Amode :arg1 and Tmode :arg2 and Vmode :arg3 and Amodel :arg4 and Tmodel :arg5 and Vmodel :arg6 and IsRegulator :arg7 and the Result is true - */ - public function iShouldTestCompliesWithAmodeAndTmodeAndVmodeAndAmodelAndTmodelAndVmodelAndIsregulatorAndTheResultIsTrue($arg1, $arg2, $arg3, $arg4, $arg5, $arg6, $arg7) - { - $service = $this->service; - - $result = $service->compliesControl($arg1, $arg2, $arg3, $arg4, $arg5, $arg6, $arg7); - - PHPUnit_Framework_Assert::assertTrue($result); - } - - /** - * @Given I should test complies with Amode :arg1 and Tmode :arg2 and Vmode :arg3 and Amodel :arg4 and Tmodel :arg5 and Vmodel :arg6 and IsRegulator :arg7 and the Result is false - */ - public function iShouldTestCompliesWithAmodeAndTmodeAndVmodeAndAmodelAndTmodelAndVmodelAndIsregulatorAndTheResultIsFalse($arg1, $arg2, $arg3, $arg4, $arg5, $arg6, $arg7) - { - $service = $this->service; - - $result = $service->compliesControl($arg1, $arg2, $arg3, $arg4, $arg5, $arg6, $arg7); - - PHPUnit_Framework_Assert::assertFalse($result); - } - -}