コード例 #1
0
 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']);
     }
 }
コード例 #2
0
 public function tearDown()
 {
     parent::tearDown();
     $this->model->deleteById('57');
 }