From fcae73ba718535d8bd9fdb4285c602595046be38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 26 Jul 2021 14:52:54 +0200 Subject: [PATCH] remote unneeded behat test --- demos/_unit-test/callback_url.php | 43 ------------------------------- tests-behat/callback.feature | 5 ---- 2 files changed, 48 deletions(-) delete mode 100644 demos/_unit-test/callback_url.php diff --git a/demos/_unit-test/callback_url.php b/demos/_unit-test/callback_url.php deleted file mode 100644 index d04adfaa7b..0000000000 --- a/demos/_unit-test/callback_url.php +++ /dev/null @@ -1,43 +0,0 @@ -catch_runaway_callbacks = false; - -$expectedWord = <<<'EOF' - v3 url: callback_url.php / - callback url: callback_url.php?__atk_cb_test=callback&__atk_cbtarget=test / - v2 url: callback_url.php - EOF; - -$b1 = Button::addTo($app)->set('callback'); - -$v1 = View::addTo($app); -$cb = Callback::addTo($v1, ['urlTrigger' => 'test']); -$v2 = View::addTo($v1); - -$cb->set(function () use ($v1, $cb, $app, $v2) { - $v3 = View::addTo($v1); - Header::addTo($app, ['Result:']); - $result = 'v3 url: ' . $v3->url() . ' / ' . 'callback url: ' . $cb->getUrl() . ' / ' . 'v2 url: ' . $v2->url(); - View::addTo($app, ['element' => 'p', 'content' => $result])->addClass('atk-result'); -}); - -$b1->link($cb->getUrl()); - -Header::addTo($app, ['Expected:']); -View::addTo($app, ['element' => 'p', 'content' => $expectedWord])->addClass('atk-expected'); diff --git a/tests-behat/callback.feature b/tests-behat/callback.feature index a44dd7e7a5..72b52110b6 100644 --- a/tests-behat/callback.feature +++ b/tests-behat/callback.feature @@ -21,8 +21,3 @@ Feature: Callback Then Modal is open with text "Edit Country" Then I press Modal button "Save" Then Toast display should contains text "Form Submit" - - Scenario: - Given I am on "_unit-test/callback_url.php" - Then I click link "callback" - Then I check if text in "p.atk-expected" match text in "p.atk-result"