Exemplo n.º 1
0
 public function testget_list_view_data()
 {
     $opportunity = new Opportunity();
     $opportunity->name = 'test';
     $expected = array('NAME' => 'test', 'DELETED' => 0, 'SALES_STAGE' => '', 'ENCODED_NAME' => 'test');
     $actual = $opportunity->get_list_view_data();
     //$this->assertSame($expected, $actual);
     $this->assertEquals($expected['NAME'], $actual['NAME']);
     $this->assertEquals($expected['DELETED'], $actual['DELETED']);
     $this->assertEquals($expected['SALES_STAGE'], $actual['SALES_STAGE']);
     $this->assertEquals($expected['ENCODED_NAME'], $actual['ENCODED_NAME']);
 }