Update to Laravel 5.7 (PHP 7.3 support) (#9800)

* Move assets to 5.7 location

* Add 5.7 SVGs

* add cache data dir

* update QUEUE_DRIVER -> QUEUE_CONNECTION

* Update trusted proxy config

* update composer.json

* 5.5 command loading

* @php and @endphp can't be inline

* Laravel 5.6 logging, Nice!

* Update blade directives

* improved redirects

* remove unneeded service providers

* Improved debugbar loading

* no need to emulate renderable exceptions anymore

* merge updated 5.7 files (WIP)

* Enable CSRF

* database_path() call causes issue in init.php

* fix old testcase name

* generic phpunit 7 fixes

* add missed file_get_contents
Keep migrations table content

* fix duplicate key

* Drop old php versions from travis-ci

* remove hhvm

* fix code climate message

* remove use of deprecated function assertInternalType

* Disable CSRF, we'll enable it separately.
All forms need to be updated to work.

* Update document references
This commit is contained in:
Tony Murray
2019-02-12 17:45:04 -06:00
committed by GitHub
parent 25954ccda6
commit e18f4522d5
70 changed files with 3056 additions and 1330 deletions

View File

@@ -67,13 +67,13 @@ class IpTest extends TestCase
$this->assertEquals('2001:db8:85a3::8a2e:370:7334', new IPv6('2001:db8:85a3::8a2e:370:7334'));
$this->assertEquals('::1', new IPv6('::1'));
$this->setExpectedException('LibreNMS\Exceptions\InvalidIpException');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
new IPv6('192.168.0.1');
$this->setExpectedException('LibreNMS\Exceptions\InvalidIpException');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
new IPv6('127.0.0.1');
$this->setExpectedException('LibreNMS\Exceptions\InvalidIpException');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
new IPv4('2001:db8:85a3::8a2e:370:7334');
$this->setExpectedException('LibreNMS\Exceptions\InvalidIpException');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
new IPv4('::1');
}
@@ -94,10 +94,10 @@ class IpTest extends TestCase
$this->assertEquals('::', IP::fromHexString('00000000000000000000000000000000'));
$this->setExpectedException('LibreNMS\Exceptions\InvalidIpException');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
IP::fromHexString("c0 a8 01 01 fe");
$this->setExpectedException('LibreNMS\Exceptions\InvalidIpException');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
IP::fromHexString('20 01 0d b8 00 00 00 00 00 00 00 00 00 02 00 00 00 01');
}
@@ -126,13 +126,13 @@ class IpTest extends TestCase
$this->assertTrue(IP::parse('2001:db8:85a3::8a2e:370:7334')->inNetwork('2001:db8:85a3::8a2e:370:7334/128'));
$this->assertFalse(IP::parse('2001:db8:85a3::8a2e:370:7335')->inNetwork('2001:db8:85a3::8a2e:370:7334/128'));
$this->setExpectedException('LibreNMS\Exceptions\InvalidIpException');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
IP::parse('42')->inNetwork('192.168.1.0/4');
$this->setExpectedException('LibreNMS\Exceptions\InvalidIpException');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
IP::parse('192.168.1.256')->inNetwork('192.168.1.0/24');
$this->setExpectedException('LibreNMS\Exceptions\InvalidIpException');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
IP::parse('192.168.1.0')->inNetwork('192.168.1.0');
}