Skip to content
Permalink
Browse files

Update unit test

  • Loading branch information
pblottiere committed May 2, 2020
1 parent 59b18b8 commit a14f66546e5904ce74e65301bbfd32c73d6d9c53
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/server/wms/test_qgsserver_wms_restorer.cpp
@@ -71,18 +71,18 @@ void TestQgsServerWmsRestorer::restorer_layer()
QgsVectorLayer *vl = nullptr;
for ( QgsMapLayer *l : context.layers() )
{
if ( l->name().compare(name) == 0 )
if ( l->name().compare( name ) == 0 )
vl = qobject_cast<QgsVectorLayer *>( l );
}

QCOMPARE( vl->name(), name );
const int opacity = vl->opacity();
const double opacity = vl->opacity();

// call restorer
{
// destructor is called once out of scope
std::unique_ptr<QgsWms::QgsWmsRestorer> restorer;
restorer.reset( new QgsWms::QgsWmsRestorer(context) );
restorer.reset( new QgsWms::QgsWmsRestorer( context ) );

const QString new_name = "new_name";
vl->setName( new_name );

0 comments on commit a14f665

Please sign in to comment.
You can’t perform that action at this time.