@@ 359-366 (lines=8) @@ | ||
356 | * |
|
357 | * @throws TDBMException |
|
358 | */ |
|
359 | public function testBeanGetException() |
|
360 | { |
|
361 | $beans = $this->tdbmService->findObjects('contact', null, [], 'contact.id ASC', [], null, TDBMObject::class); |
|
362 | $bean = $beans[0]; |
|
363 | ||
364 | // we don't specify the table on inheritance table => exception. |
|
365 | $bean->getProperty('id'); |
|
366 | } |
|
367 | ||
368 | /** |
|
369 | * @expectedException \TheCodingMachine\TDBM\TDBMException |
|
@@ 373-380 (lines=8) @@ | ||
370 | * |
|
371 | * @throws TDBMException |
|
372 | */ |
|
373 | public function testBeanSetException() |
|
374 | { |
|
375 | $beans = $this->tdbmService->findObjects('contact', null, [], 'contact.id ASC', [], null, TDBMObject::class); |
|
376 | $bean = $beans[0]; |
|
377 | ||
378 | // we don't specify the table on inheritance table => exception. |
|
379 | $bean->setProperty('name', 'foo'); |
|
380 | } |
|
381 | ||
382 | public function testTake() |
|
383 | { |