title: Testing beforeFilter() function
body: <p>I am doing unit testing for a PHP application using CakePHP framework. 
  The function that I am testing is beforeFilter() which basically loads the models.</p>
  
  <pre><code>public function beforeFilter(Event $event) {
          parent::beforeFilter($event);
  
          $this-&gt;loadModel('Model1');
          $this-&gt;loadModel('Model2');
          $this-&gt;loadModel('Model3');
          $this-&gt;loadModel('Model3');
  
  }
  </code></pre>
  
  <p>How should I test this function ? What assertions I need to make in order to write good test case ?  </p>