We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
можете показать пример написания unit теста с проверкой загрузки данных в таблицу?
The text was updated successfully, but these errors were encountered:
namespace tests\codeception\common\unit; use tests\codeception\common\fixtures\TemperatureFixture; class AssortmentTest extends tests\codeception\common\unit\TestCase { public function fixtures() { return [ TemperatureFixture::className(), ]; } public function testTryCreateModel() { // Получаем массив значений из бд $temperaturesFromDataBase = $this->getFixture(TemperatureFixture::className())->data; // ... проверки } }
namespace tests\codeception\common\fixtures; class TemperatureFixture extends yii\test\ActiveFixture { public $modelClass = 'common\models\Temperature'; }
Sorry, something went wrong.
No branches or pull requests
можете показать пример написания unit теста с проверкой загрузки данных в таблицу?
The text was updated successfully, but these errors were encountered: