2c2 < index 6c46b2a..50ab352 100644 --- > index 0f70800..cfb649e 100644 10c10 < + if(!$last_checked && $refresh_rate) { --- > + if (!$last_checked && $refresh_rate) { 25c25 < index 0000000..7876e5f --- > index 0000000..4881dd6 28c28 < @@ -0,0 +1,57 @@ --- > @@ -0,0 +1,71 @@ 55c55,56 < + // The scheduled feed shows that it has not been updated yet and is scheduled. --- > + // The scheduled feed shows that it has not been updated yet and is > + // scheduled. 57a59,61 > + $this->assertNoText('ago', 'The scheduled feed has not been updated yet. Last update does not show "x x ago".'); > + $this->assertNoText('left', 'The scheduled feed has not been updated yet. Next update does not show "x x left".'); > + 62c66,67 < + // After the update, an interval should be displayed on both last updated and next update. --- > + // After the update, an interval should be displayed on both last updated > + // and next update. 64a70,72 > + $this->assertText('ago', 'The scheduled feed been updated. Last update shows "x x ago".'); > + $this->assertText('left', 'The scheduled feed has been updated. Next update shows "x x left".'); > + 75a84,85 > + $this->assertNoText('ago', 'The non scheduled feed has not been updated. It does not show "x x ago" as last update.'); > + $this->assertNoText('left', 'The feed is not scheduled. It does not show a timeframe "x x left" for next update.'); 80c90,91 < + // After the feed update, we still need to see "never" as next update label. Last update will show an interval. --- > + // After the feed update, we still need to see "never" as next update > + // label. Last update will show an interval. 82a94,96 > + $this->assertText('ago', 'The non scheduled feed has been updated. It shows "x x ago" as last update.'); > + $this->assertNoText('left', 'The feed is not scheduled. It does not show a timeframe "x x left" for next update.'); > +