public function testBulkLoaderResultUpdated() { $results = BulkLoader_Result::create(); $player = BulkLoaderTestPlayer::get()->find('Name', 'Vincent'); $player->Status = 'Unavailable'; $player->write(); $results->addUpdated($player, 'Injured'); $this->assertEquals($results->UpdatedCount(), 1); $this->assertSame('Vincent', $results->Updated()->find('Name', 'Vincent')->Name, 'The player Vincent should be recorded as updated'); $this->assertSame('Unavailable', $results->Updated()->find('Name', 'Vincent')->Status, 'The player Vincent should have a Status of Unavailable'); $this->assertSame('Injured', $results->Updated()->find('Name', 'Vincent')->_BulkLoaderMessage, 'Vincent is injured'); }