/**
  * @depends testCreate
  */
 public function testOrgsWithUnapprovedHourNotifications()
 {
     $hour = new VolunteerHour();
     $this->assertTrue($hour->create(['organization' => self::$org->id(), 'uid' => -2, 'hours' => 5, 'timestamp' => time(), 'approved' => false]));
     self::$org->load();
     $this->assertEquals(2, self::$org->unapproved_hours_notify_count);
     $orgs = Organization::orgsWithUnapprovedHourNotifications();
     $this->assertInstanceOf('infuse\\Model\\Iterator', $orgs);
     $orgs2 = [];
     foreach ($orgs as $org) {
         $orgs2[] = $org;
     }
     $this->assertCount(1, $orgs2);
     $this->assertEquals(self::$org->id(), $orgs2[0]->id());
 }