not->toBeFalse(); return substr($source, $pos, 900); }; test('the host status UPDATE is scoped by id', function () use ($statement) { expect($statement()) ->toContain('WHERE id = ?') ->not->toContain('WHERE hostname = ?'); }); test('the host status UPDATE binds the id it read the row with', function () use ($statement) { expect($statement()) ->toContain('$host[\'id\']') ->not->toContain('$host[\'hostname\']'); }); test('the host status UPDATE still excludes soft-deleted devices', function () use ($statement) { expect($statement())->toContain('AND deleted = ""'); });