Beispiel #1
0
 public function test_should_have_locking_enabled()
 {
     $Account = new BankAccount();
     $this->assertTrue($Account->isLockingEnabled(), 'Optimistic locking is enabled by default.');
     $Account->lock_optimistically = false;
     $this->assertFalse($Account->isLockingEnabled(), 'Optimistic locking can be turned off.');
 }