TYPO3 CMS  TYPO3_6-2
LogEntryTest.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $fixture = NULL;
27 
28  public function setUp() {
29  $this->fixture = new \TYPO3\CMS\Belog\Domain\Model\LogEntry();
30  }
31 
36  $this->assertSame(array(), $this->fixture->getLogData());
37  }
38 
43  $this->fixture->setLogData('');
44  $this->assertSame(array(), $this->fixture->getLogData());
45  }
46 
51  $this->fixture->setLogData('foo bar');
52  $this->assertSame(array(), $this->fixture->getLogData());
53  }
54 
59  $logData = array('foo', 'bar');
60  $this->fixture->setLogData(serialize($logData));
61  $this->assertSame($logData, $this->fixture->getLogData());
62  }
63 
68  $this->fixture->setLogData(new \stdClass());
69  $this->assertSame(array(), $this->fixture->getLogData());
70  }
71 
72 }
getLogDataForEmptyStringLogDataReturnsEmptyArray()
getLogDataForSerializedArrayReturnsThatArray()
$fixture
setUp()
getLogDataInitiallyReturnsEmptyArray()
getLogDataForSerializedObjectReturnsEmptyArray()
getLogDataForGarbageStringLogDataReturnsEmptyArray()