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