예제 #1
0
 /**
  * @dataProvider exampleUser
  */
 public function testDestroy($user)
 {
     Castle_RequestTransport::setResponse(204);
     TestUser::destroy($user['id']);
     $this->assertRequest('delete', '/users/' . $user['id']);
 }
 function testDestroy()
 {
     $user = new TestUser(1);
     $user->destroy();
     $this->assertEqual(SimpleDbAdapterWrapper::$adapter->lastSQL(), 'DELETE FROM users WHERE id = 1');
 }