امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I'm trying to leverage the assertRecordExists functionality and i'm not getting consistent results.
the base code looks like:
Code:
When i test a record that exists, it functions correctly.
When i test a record that doesn't exist, it throws an exception...
Read more
the base code looks like:
Code:
کد:
$finder->where('x', $params['slug']);
$x= $finder->fetchOne();
$x= $this->assertRecordExists('NS\Addon:X', $x['id'], null, null);
if(!$x)
{
throw $this->exception($this->notFound('X Not Found in our Database'));
}
When i test a record that exists, it functions correctly.
When i test a record that doesn't exist, it throws an exception...
Read more
