public function test_getAllReleaseChannels_shouldOrderChannelsByOrderId() { $channels = $this->channels->getAllReleaseChannels(); $lowest = 0; foreach ($channels as $channel) { $this->assertGreaterThanOrEqual($lowest, $channel->getOrder()); $lowest = $channel->getOrder(); } // to make sure we actually went into the for loop... $this->assertGreaterThan(0, $lowest); }