Beispiel #1
0
 /**
  * Refresh an expired test
  *
  * @since 0.0.9
  *
  * @access protected
  *
  * @param int $sequence_id
  */
 protected function refresh_test($sequence_id)
 {
     if (array_key_exists($sequence_id, $this->current_sequences)) {
         $sequence = $this->current_sequences[$sequence_id];
     } else {
         $sequence = sequence::read($sequence_id);
     }
     if (is_array($sequence)) {
         $this->add_test($sequence);
     }
 }
Beispiel #2
0
 /**
  * Collect the tests we need
  *
  * @since 0.2.0
  *
  * @access protected
  *
  * @return array
  */
 protected function collect_sequence()
 {
     $args = array('price_test' => true, 'current' => true, 'limit' => -1);
     $active_sequences = \ingot\testing\crud\sequence::get_items($args);
     return $active_sequences;
 }