-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25-08-2022 - Запилил функциональное тестирование детальных страниц то…
…рговцев (Проблема была в отсутствии фикстур)
- Loading branch information
1 parent
695e150
commit 8deac8f
Showing
6 changed files
with
101 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: PC_Principal | ||
* Date: 25.08.2022 | ||
* Time: 23:18 | ||
* | ||
* Фикстуры для таблицы Info (Нужны в функциональном тестировании) | ||
*/ | ||
|
||
return [ | ||
[ | ||
'id' => 2, | ||
'title' => 'Сообщение пользователям на сайт', | ||
'content' => 'Доступна карта локации Terra Group - <a href="https://tarkov-wiki.ru/maps/terragroup-laboratory-location#1/-11/163" target="_blank">перейти к карте</a>. Сайт находится на стадии <b>глобальной актуализации информации</b>. Если вы заметите неточную или устаревшую информацию - просьба написать об этом в комментариях под обсуждаемым материалом.', | ||
'preview' => null, | ||
'enabled' => 0, | ||
'course' => null, | ||
'bgstyle' => 'tarkov-good' | ||
] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: PC_Principal | ||
* Date: 25.08.2022 | ||
* Time: 23:05 | ||
* | ||
* Фикстура торговца для функциональных тестов | ||
*/ | ||
return [ | ||
[ | ||
'title' => 'Прапор', | ||
'preview' => '/img/admin/resized/p2240218062615.jpg', | ||
'urltoquets' => '/quests-of-traders/prapor-quests', | ||
'button_quests' => 'Перейти в раздел квестов Прапора', | ||
'button_detail' => 'Перейти в раздел Прапора', | ||
'bg_style' => 'interback-white', | ||
'enabled' => 1, | ||
'content' => '<p><span style="font-size:16px">Прапор выдает довольного много квестов а также торгует оружием. У прапора в Escape from Tarkov вы сможете купить автоматы калашникова, снайперскую винтовку СВ-98, укороченные автоматы АКС-У пистолеты и пистолеты-пулеметы, также Прапор продает гранаты. Репутацию с Прапором необходимо прокачивать в первую очередь, т.к. большую часть оружия вы будете покупать именно у него, кроме всего прочего ему, также можно продавать оружие и пистолеты.</span></p><p><span style="font-size:16px">У Прапора нет сложных квестов, в основном все его задания подразумевают убийство Диких и поиск различных квестовых предметов на карте, большую часть квестов вы сможете пройти в одиночку без посторонней помощи.</span></p>', | ||
'sortir' => 1, | ||
'fullcontent' => '', | ||
'description' => 'Прапор. Escape from Tarkov.', | ||
'keywords' => 'Прапор из Escape from Tarkov, Что продаёт Прапор в Escape from Tarkov, все о торговце Прапоре.', | ||
'url' => 'prapor' | ||
] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: PC_Principal | ||
* Date: 25.08.2022 | ||
* Time: 23:17 | ||
* | ||
* Фикстура для Инфо Виджета | ||
*/ | ||
|
||
namespace app\tests\fixtures; | ||
|
||
class InfoFixture extends \yii\test\ActiveFixture { | ||
public $modelClass = 'app\models\Info'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: PC_Principal | ||
* Date: 25.08.2022 | ||
* Time: 23:03 | ||
* | ||
* Фикстура торговца для функционального теста детальной страницы торговца | ||
*/ | ||
|
||
namespace app\tests\fixtures; | ||
|
||
class TradersFixture extends \yii\test\ActiveFixture { | ||
public $modelClass = 'app\models\Traders'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters