예제 #1
0
 /**
  * Ensure that an exception is not thrown, if the user does not exist
  */
 public function testLoadByUsername()
 {
     $this->_model->loadByUsername('non_existing_user');
     $this->assertNull($this->_model->getId(), 'The admin user has an unexpected ID');
     //$this->_model->loadByUsername(Magento_Test_Bootstrap::ADMIN_NAME);
     $this->_model->loadByUsername('');
     $this->assertNotEmpty($this->_model->getId(), 'The admin user should have been loaded');
 }