-
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.
16-08-2022 - Базовые Unit тесты для интерактивной карты локации Завод…
… завершены
- Loading branch information
1 parent
5ad5f8d
commit f80916c
Showing
17 changed files
with
161 additions
and
348 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
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
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,44 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: PC_Principal | ||
* Date: 16.08.2022 | ||
* Time: 20:39 | ||
* | ||
* Фикстуры для интерактивных карт | ||
*/ | ||
return [ | ||
[ | ||
'name' => 'Ящик у выхода 234234с локации', | ||
'marker_group'=>'Военн234234ые ящики', | ||
'coords_x'=>'1333', | ||
'coords_y'=>'-1235', | ||
'content'=>'<p>Это основной выхо34234234д с локации Завод, если у вас нет ключа от выхода с завода - это ваш единственный способ выйти с карты.</p><p><img alt="Основной выход с локации Завод. Через него выходит основная часть игроков." src="/img/upload/bereg_images/vihod-s-karty.png" style="width:100%" /></p>', | ||
'enabled'=>'0', | ||
'customicon'=>'/img/orota_3_d.png', | ||
'exits_group'=>'Другое значение', | ||
'exit_anyway'=>'0' | ||
], | ||
[ | ||
'name' => 'Ящик у выхода 234234с локации', | ||
'marker_group'=>'Военн234234ые ящики', | ||
'coords_x'=>'140', | ||
'coords_y'=>'-135', | ||
'content'=>'<p>Это основной выхо34234234д с локации Завод, если у вас нет ключа от выхода с завода - это ваш единственный способ выйти с карты.</p><p><img alt="Основной выход с локации Завод. Через него выходит основная часть игроков." src="/img/upload/bereg_images/vihod-s-karty.png" style="width:100%" /></p>', | ||
'enabled'=>'0', | ||
'customicon'=>'/img/orota_3_d.png', | ||
'exits_group'=>'Другое значение', | ||
'exit_anyway'=>'0' | ||
], | ||
[ | ||
'name' => 'Ящик у выхода 234234с локации', | ||
'marker_group'=>'Военн234234ые ящики', | ||
'coords_x'=>'1550', | ||
'coords_y'=>'-135', | ||
'content'=>'<p>Это основной выхо34234234д с локации Завод, если у вас нет ключа от выхода с завода - это ваш единственный способ выйти с карты.</p><p><img alt="Основной выход с локации Завод. Через него выходит основная часть игроков." src="/img/upload/bereg_images/vihod-s-karty.png" style="width:100%" /></p>', | ||
'enabled'=>'0', | ||
'customicon'=>'/img/orota_3_d.png', | ||
'exits_group'=>'Другое значение', | ||
'exit_anyway'=>'0' | ||
] | ||
]; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: PC_Principal | ||
* Date: 16.08.2022 | ||
* Time: 20:49 | ||
* | ||
* Фикстура маркеров локации Завод | ||
*/ | ||
|
||
namespace app\tests\fixtures; | ||
|
||
class ZavodFixture extends \yii\test\ActiveFixture { | ||
|
||
public $modelClass = 'app\models\Zavod'; | ||
|
||
/** @var string Имя таблицы */ | ||
const TABLE_NAME = 'zavod'; | ||
|
||
public function afterLoad() { | ||
parent::afterLoad(); | ||
$this->db->createCommand()->setSql('truncate table .'.static::TABLE_NAME)->execute(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ modules: | |
enabled: | ||
- Asserts | ||
- Yii2: | ||
part: [orm, email] | ||
part: [orm, email, fixtures] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.