function testJobsAreRetrieveableByCoalesceId() { // Create a queue $q = new JQStore_Array(); // Add a job $coalesceId = 'foo'; $insertedJob = new SampleCoalescingJob($coalesceId); $q->enqueue($insertedJob); // Try to retrieve a job by coalesceId, make sure it's the same object $retrievedJob = $q->getByCoalesceId($coalesceId)->getJob(); $this->assertEquals($insertedJob, $retrievedJob); }