Ejemplo n.º 1
0
 /**
  * test deleting a PlayerStatistic that does not exist
  *
  * @expectedException PDOException
  **/
 public function testDeleteInvalidPlayerStatistic()
 {
     // Create a playerStatistic and try to delete it without actually inserting it
     $playerStatistic = new PlayerStatistic(null, $this->playerStatistic->getPlayerStatisticId());
     $playerStatistic->delete($this->getPDO());
 }
Ejemplo n.º 2
0
 /**
  * test deleting a PlayerStatistic That does not exist
  *
  * @expectedException \PDOException
  **/
 public function testDeleteInvalidPlayerStatistic()
 {
     // create a playerStatistic with a non null foreign key and watch it fail
     $playerStatistic = new PlayerStatistic(SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY);
     $playerStatistic->insert($this->getPDO());
     $playerStatistic->delete($this->getPDO());
 }