/**
  * @test
  */
 function it_can_be_configured_not_to_use_database_transactions()
 {
     $post = $this->createPost();
     $data = ['title' => 'this should be', 'body' => 'rolled back', 'comments' => [['id' => 999]]];
     $updater = new ModelUpdater(Post::class);
     $updater->disableDatabaseTransaction();
     try {
         $updater->update($data, $post);
         // should never get here
         $this->fail('Exception should have been thrown while attempting update');
     } catch (NestedModelNotFoundException $e) {
         // expected
     }
     // unchanged data
     $this->seeInDatabase('posts', ['title' => 'this should be', 'body' => 'rolled back']);
 }