/**
  * Test that we can query for these tests properly
  *
  * @since 1.1.0
  *
  * @group group
  * @group destination
  * @group cookie
  * @group destination_cookie
  *
  * @covers \ingot\testing\tests\click\destination\init::get_destination_tests()
  */
 public function testQuery()
 {
     ingot_test_data_price::edd_tests();
     ingot_tests_data::make_groups();
     $x = 0;
     foreach (\ingot\testing\tests\click\destination\types::destination_types() as $type) {
         if ('hook' == $type) {
             continue;
         }
         $data = ingot_test_desitnation::create($type);
         $this->assertTrue(is_numeric($data['group_ID']));
         $the_groups[] = $data['group_ID'];
         $x++;
     }
     $groups = \ingot\testing\tests\click\destination\init::get_destination_tests();
     $this->assertSame($x, count($groups));
     $this->assertEquals($the_groups, $groups);
 }
/**
 * Helper functions for tests
 *
 * @package   ingot
 * @author    Josh Pollock <*****@*****.**>
 * @license   GPL-2.0+
 * @link
 * @copyright 2015 Josh Pollock
 */
function ingot_tests_make_groups($add_variants = true, $total_groups = 5, $variants_per_group = 3, $args = array())
{
    return ingot_tests_data::make_groups($add_variants, $total_groups, $variants_per_group, $args);
}