/** * Test the normal usage for copyEvent function. */ public function testCopyEvent() { $eventID = static::$eventModel->copyEvent(2, '04/11/2016', '10:00 AM'); $expectedTable = (new PHPUnit_ArrayDataSet(array('Event' => array(parent::createEventObject(3, 1, 'Badminton Game', "Let's play together!", '2016-04-11 10:00:00', 'Activities and Recreation Center (ARC), 201 E Peabody Dr, Champaign, IL, 61820', 4, 0, 3, null, 40.100972, -88.23607699999999)))))->getTable('Event'); $actualTable = $this->getConnection()->createQueryTable('Event', 'SELECT * FROM Event WHERE EventID = ' . $eventID); $this->assertEquals(3, $this->getConnection()->getRowCount('Event')); $this->assertTablesEqual($expectedTable, $actualTable); }