public function setUp() { parent::setUp(); $user57 = $this->model->getById('57'); if (count($user57) === 0) { $this->model->insert(['id' => 57, 'username' => '*****@*****.**', 'password' => '123456', 'role' => 'ROLE_ADMIN']); } }
public function tearDown() { parent::tearDown(); $this->model->deleteById('57'); }